package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Interviewee;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface IntervieweeMapper extends BaseMapper<Interviewee> {

    @Insert(" INSERT INTO `interviewee` (`name`, `sex`, `age`, `department_id`, `email`, `remark`, `create_date`)\n" +
            "VALUES(#{name}, #{sex}, #{age}, #{departmentId}, #{email}, #{remark}, NOW())")
    void addInterviewee(Interviewee interviewee);

}
